<template>
	<view class="user-terms-content">
		<view v-html="content" style="width: calc(100% - 60rpx);margin: 30rpx 30rpx 30rpx 30rpx;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			}
		},
		methods: {
			requsetMain() {
				this.request.httpRequest('/mp-api/wx/config/sysconfig',null,'POST',true).then( res=> {
					if (res.code == 0) {
						this.content = res.data.userPrivacyAgreement.replace(/<img/g,"<img style='max-width:100%;height:auto;'")
					}
				})
			}
		},
		onLoad() {
			this.requsetMain()
		}
	}
</script>

<style>
	.user-terms-content {
		display: flex;
		flex-direction: column;
	}
</style>
